import request from "../utils/request"

/**
 * 
 * @param {*}  
 * @returns 获取我的用户信息
 */
export const getmyAPI = () => {
  return request.get('/userInfo')
}

/**
 * 
 * @param {*} id 
 * @returns 修改昵称头像
 */
export const edituserinfoAPI = (nickName) => {
  return request.put('/userInfo',{nickName})
}